/*
 * @Author: 义存宝
 * @Date: 2021-03-05 18:03:37
 * @LastEditors: Su Yunzheng
 * @LastEditTime: 2021-03-11 15:19:44
 * @Description: file content
 */


 import Cookies from 'js-Cookie'

  //将token存储在cook中
 export const setCookies=(key:string,value:string)=>{
       Cookies.set(key,value)
 }
 //获取cookies
 export const getCookies=(key:string)=>{
    return Cookies.get(key)
}

  //删除cookies
export const removeCookies=(key:string,data:{path:string})=>{
    Cookies.remove(key,data)
}